/*
 * @(#) AttenderStateEnum
 *
 * <br> Copyright:  Copyright (c) 2017
 * <br> @author caijinhuang
 * <br> 2017-12-18 16:20:54
 */

package com.sunsharing.sharemeeting.constant;

/*会议决议状态*/

public enum AttenderStateEnum {

    NORMAL("A001","超时"),
    LEAVE("A002","紧急"),
    ABSENT("A003" , "高");


    private String key;
    private String value;

    AttenderStateEnum(String key, String value) {
        this.key = key;
        this.value = value;
    }

    /*获取枚举内容*/
    public static String getName(String key) {
        for (AttenderStateEnum d : AttenderStateEnum.values()) {
            if (d.getKey().equals(key)) {
                return d.getValue();
            }
        }
        return null;
    }

    public String getKey() {
        return key;
    }

    public String getValue() {
        return value;
    }
}
